package com.service.impl;

import com.entity.DinerComment;
import com.mapper.DinerCommentMapper;
import com.service.DinerCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DinerCommentServiceImpl implements DinerCommentService {

    @Autowired
    DinerCommentMapper mapper;

    @Override
    public List<DinerComment> getListComment(Integer flag) {
        return mapper.getListComment(flag);
    }

    @Override
    public Integer addCommentInfo(DinerComment comment) {
        return mapper.addCommentInfo(comment);
    }
}
